﻿<local:DocumentBase x:Class="WPFExcelReport.JLTAB55DOC"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    
                    xmlns:db="clr-namespace:INTEX.DataBase"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    
                    FontSize="16"
                    Loaded="Window_Loaded"
     >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <db:SETINTEXDB  x:Key="SetData" />
        <db:SETINTEXDB  x:Key="SetProd" />
        <CollectionViewSource   x:Key="vwABKOPF" Source="{Binding Path=ABKOPF,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwABPOS" Source="{Binding Path=ABPOS,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwGAAUF" Source="{Binding Path=GAAUF,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwTGAAUF" Source="{Binding Path=GPDAT,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWASTAMM" Source="{Binding Path=WASTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWBBST" Source="{Binding Path=WBBST,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwTBABST" Source="{Binding Path=TBABST,Source={StaticResource SetData}}" />
    </local:DocumentBase.Resources>
    <TabControl>
        <TabItem Header="生产单">
            <Grid   >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="1*" />
                    <RowDefinition Height="1*" />
                    <RowDefinition Height="1*" />
                    <RowDefinition Height="1*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*" />
                </Grid.ColumnDefinitions>
                <WrapPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"  >
                    <TextBlock FontSize="18"  Height="40"   Width="59"  Margin="0,0,0,0" Text="小花号" />
                    <TextBox Background="White"  FontSize="18"  Height="36"   Width="200" Name="txtArt" CharacterCasing="Upper" Margin="10,0,0,0" Text="" />
                    <TextBlock FontSize="18"  Height="40"   Width="59"  Margin="0,0,0,0" Text="生产单" />
                    <TextBox Background="White"  FontSize="18"  Height="36"   Width="40" Name="txtFKRS" CharacterCasing="Upper" Margin="5,0,0,0" Text="" />
                    <TextBox Background="White"  FontSize="18" Height="36"    Width="80" Name="txtFLFD"   Margin="5,0,0,0" Text="" />
                    <TextBox Background="White"  FontSize="18" Height="36"    Width="60" Name="txtFPOS"   Margin="5,0,0,0" Text="" />
                    <Button FontSize="18" Content="查询" Height="40" Margin="20,0,0,0" Name="butGetData" Click="btnQuery_Click"></Button>
                    <Button Content="打印"  FontSize="18" Height="40" Margin="20,0,0,0"    Width="Auto" Click="btnPrint_Click"/>
                </WrapPanel>
                <DataGrid    Margin="0,1,0,0" Grid.Row="1" Grid.ColumnSpan="2" 
                    CanUserReorderColumns="True"  
                  CanUserResizeRows="True" CanUserSortColumns="True"                  
                  AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"  
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                  IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwABPOS}}"  x:Name="dlgABP" 
                >
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="" Binding="{Binding ABPAUFKRS}" Width="40"/>
                        <DataGridTextColumn Header="生产单" Binding="{Binding ABPAUFLFD}" Width="80"/>
                        <DataGridTextColumn Header="" Binding="{Binding ABPAUFPOS}" Width="40"/>
                        <DataGridTextColumn Header="任务书" Binding="{Binding ABPART}" Width="100"/>
                        <DataGridTextColumn Header="花型" Binding="{Binding ABPFARBE}" Width="60"/>
                        <DataGridTextColumn Header="长度" Binding="{Binding Path=ABPSOLLMENGE1, Converter={StaticResource ResourceKey=d100}}" Width="80"/>
                        <DataGridTextColumn Header="开始" Binding="{Binding ABPSTARTDAT}" Width="60"/>
                        <DataGridTextColumn Header="交期" Binding="{Binding ABPENDDAT}" Width="60"/>
                        <DataGridTextColumn Header="行备注" Binding="{Binding REMARK, Converter={StaticResource ResourceKey=gb2312}}" Width="200"/>
                    </DataGrid.Columns>
                </DataGrid  >
                <DataGrid 
                     Grid.Row="2" Grid.Column="0" Margin="0,1,0,0" 
                    FontSize="12"
                    CanUserReorderColumns="True"  
                  CanUserResizeRows="True" CanUserSortColumns="True"                  
                  AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"  
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                  IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwTBABST}}"  x:Name="dlgBABST" 
                 >
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="" Binding="{Binding BMBAUMKRS}" Width="40"/>
                        <DataGridTextColumn Header="轴号" Binding="{Binding BMBAUMLFD}" Width="80"/>
                        <DataGridTextColumn Header="" Binding="{Binding BMAUFKRS}" Width="40"/>
                        <DataGridTextColumn Header="生产单" Binding="{Binding BMAUFLFD}" Width="80"/>
                        <DataGridTextColumn Header="" Binding="{Binding BMAUFPOS}" Width="40"/>
                        <DataGridTextColumn Header="库位" Binding="{Binding BMLO}" Width="40"/>
                        <DataGridTextColumn Header=" " Binding="{Binding BMLB}" Width="20"/>
                        <DataGridTextColumn Header=" " Binding="{Binding BMLP}" Width="40"/>
                        <DataGridTextColumn Header="长度" Binding="{Binding Path=BMRESTLG, Converter={StaticResource ResourceKey=d10}}" Width="80"/>
                        <DataGridTextColumn Header="备注" Binding="{Binding BMBEM, Converter={StaticResource ResourceKey=gb2312}}" Width="200"/>
                    </DataGrid.Columns>
                </DataGrid  >
                <DataGrid  Grid.Row="2"   Grid.Column="1" Margin="0,1,0,0" 
                    CanUserReorderColumns="True"  
                  CanUserResizeRows="True" CanUserSortColumns="True"                  
                  AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"  
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                  IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwTGAAUF}}"  x:Name="dlgXGAAUF" 
                  >
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="" Binding="{Binding GAAUFKRS}" Width="40"/>
                        <DataGridTextColumn Header="生产单" Binding="{Binding GAAUFLFD}" Width="80"/>
                        <DataGridTextColumn Header="" Binding="{Binding GAAUFPOS}" Width="40"/>
                        <DataGridTextColumn Header="纱线" Binding="{Binding GAART}" Width="160"/>
                        <DataGridTextColumn Header="版本" Binding="{Binding GAVAR}" Width="40"/>
                        <DataGridTextColumn Header="色号" Binding="{Binding GAFARBE}" Width="80"/>
                        
                        <DataGridTextColumn Header="需求" Binding="{Binding Path=GAKG1, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                        <DataGridTextColumn Header="留位" Binding="{Binding Path=GAKG5, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                        <DataGridTextColumn Header="领料" Binding="{Binding Path=GAKG3, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                    </DataGrid.Columns>
                </DataGrid  >
            </Grid>
        </TabItem>
        <TabItem Header="标签">
            <Grid   >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="1*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="1*" />
                </Grid.ColumnDefinitions>
                <WrapPanel Grid.Row="0" Grid.Column="0"
            Grid.ColumnSpan="2"   >
                    <Button Content="打印标签"  FontSize="18" Height="40" Margin="20,0,0,0"    Width="Auto" Click="btnPrintPiece_Click"/>
                </WrapPanel>
                <DataGrid Grid.ColumnSpan="2" Margin="0,1,0,0" Grid.Row="1" CanUserReorderColumns="True"  
                  CanUserResizeRows="True" CanUserSortColumns="True"                  
                  AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"  
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                  IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwWBBST}}"  x:Name="dlgWBBST" 
                  >
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="" Binding="{Binding WBBAUFKRS}" Width="40"/>
                        <DataGridTextColumn Header="生产单" Binding="{Binding WBBAUFLFD}" Width="80"/>
                        <DataGridTextColumn Header="" Binding="{Binding WBBAUFPOS}" Width="40"/>
                        <DataGridTextColumn Header="品种" Binding="{Binding WBBART}" Width="160"/>
                        <DataGridTextColumn Header="色号" Binding="{Binding WBBFARBE}" Width="80"/>
                        <DataGridTextColumn Header="布卷号" Binding="{Binding WBBSTKNR}" Width="80"/>
                        <DataGridTextColumn Header="计划长度" Binding="{Binding Path=WBBISTKLG, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                        <DataGridTextColumn Header="打印标志" Binding="{Binding WBBDRKZ1}" Width="60"/>
                    </DataGrid.Columns>
                </DataGrid  >
            </Grid>
        </TabItem>
        <TabItem Header="领纱单">
            <Grid   >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="1" />
                    <RowDefinition Height="1*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="32*"></ColumnDefinition>
                    <ColumnDefinition Width="222*"/>
                    <ColumnDefinition Width="255*" />
                    <ColumnDefinition Width="254*"></ColumnDefinition>
                    <ColumnDefinition Width="255*" />
                </Grid.ColumnDefinitions>
                <StackPanel Grid.Row="0" Grid.Column="0"
            Grid.ColumnSpan="5" Orientation="Horizontal" >
                    <TextBlock FontSize="18"  Height="40"   Width="59"  Margin="0,0,0,0" Text="小花号" />
                    <TextBox Background="White"  FontSize="18"  Height="36"   Width="200" Name="txtFArt" CharacterCasing="Upper" Margin="10,0,0,0" Text="" />
                    <TextBlock FontSize="18"  Height="40"   Width="59"  Margin="0,0,0,0" Text="生产单" />
                    <TextBox Background="White"  FontSize="18"  Height="36"   Width="40" Name="txtYKRS" CharacterCasing="Upper" Margin="5,0,0,0" Text="" />
                    <TextBox Background="White"  FontSize="18" Height="36"    Width="80" Name="txtYLFD"   Margin="5,0,0,0" Text="" />
                    <Button FontSize="18" Content="查询" Height="40" Margin="20,0,0,0"   Click="btnQueryAB50_Click"></Button>
                    <Button Content="打印"  FontSize="18" Height="40" Margin="20,0,0,0"   Width="Auto" Click="btnPrintYarn_Click"/>
                </StackPanel>
                <DataGrid 
                    Grid.ColumnSpan="5" Margin="0,1,0,0" Grid.Row="2"
                    CanUserReorderColumns="True"  
                  CanUserResizeRows="True" CanUserSortColumns="True"                  
                  AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"  
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                  IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwTGAAUF}}"  x:Name="dlgTGAAUF" 
                  >
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="" Binding="{Binding GAAUFKRS}" Width="40"/>
                        <DataGridTextColumn Header="生产单" Binding="{Binding GAAUFLFD}" Width="80"/>
                        <DataGridTextColumn Header="" Binding="{Binding GAAUFPOS}" Width="40"/>
                        <DataGridTextColumn Header="纱线" Binding="{Binding GAART}" Width="160"/>
                        <DataGridTextColumn Header="版本" Binding="{Binding GAVAR}" Width="40"/>
                        <DataGridTextColumn Header="色号" Binding="{Binding GAFARBE}" Width="80"/>
                        <DataGridTextColumn Header="需求" Binding="{Binding Path=GAKG1, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                        <DataGridTextColumn Header="留位" Binding="{Binding Path=GAKG5, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                        <DataGridTextColumn Header="领料" Binding="{Binding Path=GAKG3, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                    </DataGrid.Columns>
                </DataGrid  >
                <DataGrid 
                    Grid.ColumnSpan="5" Margin="0,1,0,0" Grid.Row="2"
                    CanUserReorderColumns="True"  
                  CanUserResizeRows="True" CanUserSortColumns="True"                  
                  AutoGenerateColumns="False"   
                  EnableRowVirtualization="True"  
                  RowDetailsVisibilityMode="VisibleWhenSelected" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                  IsSynchronizedWithCurrentItem="True" Opacity="10" Visibility="Visible"
                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwGAAUF}}"  x:Name="dlgGAAUF" 
                  >
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="" Binding="{Binding GAAUFKRS}" Width="40"/>
                        <DataGridTextColumn Header="生产单" Binding="{Binding GAAUFLFD}" Width="80"/>
                        <DataGridTextColumn Header="" Binding="{Binding GAAUFPOS}" Width="40"/>
                        <DataGridTextColumn Header="纱线" Binding="{Binding GAART}" Width="160"/>
                        <DataGridTextColumn Header="版本" Binding="{Binding GAVAR}" Width="40"/>
                        <DataGridTextColumn Header="色号" Binding="{Binding GAFARBE}" Width="80"/>
                        <DataGridTextColumn Header="整理" Binding="{Binding ABPBESCHICH}" Width="80"/>
                        <DataGridTextColumn Header="需求" Binding="{Binding Path=GAKG1, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                        <DataGridTextColumn Header="留位" Binding="{Binding Path=GAKG5, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                        <DataGridTextColumn Header="领料" Binding="{Binding Path=GAKG3, Converter={StaticResource ResourceKey=d100}}" Width="40"/>
                    </DataGrid.Columns>
                </DataGrid  >
            </Grid>
        </TabItem>
    </TabControl>
</local:DocumentBase>
